<div class="modal-header" id="scope">
	<h3 class="modal-title">附件上传</h3>
</div>
<div class="modal-body">
	<form name="myForm" class="form-horizontal form-validation">
		<div class="panel panel-default">
			<div class="panel-body">
				<div class="form-group">
					<label class="col-sm-3 control-label">姓名：</label>
					<div class="col-sm-6">
						<input type="text" class="form-control" placeholder="姓名"
							ng-model="param.data.name" ng-maxlength="100"  readonly="readonly" required>
					</div>
				</div>
 				<div class="form-group" ng-show="param.data.attachment!=null" style="color: red">
					<label class="col-sm-3 control-label">注意：</label>
					<div class="col-sm-6">
                           <p style="margin-top: 7px">当前司机已上传过附件，上传新附件将会覆盖旧附件！</p>
					</div>
				</div>
 				<div class="form-group" ng-show="param.data.attachment!=null">
					<label class="col-sm-3 control-label">当前附件下载地址：</label>
					<div class="col-sm-6">
						<input type="text" class="form-control" placeholder="下载地址"
							ng-model="param.data.attachment" ng-maxlength="100" readonly="readonly">
					</div>
					<p>
                            <button class="btn m-b-xs btn-sm btn-default btn-addon"  type="button" ng-click="uploadAff()">
                            <i class="fa  fa-tag"></i>查看附件</button>
					</p>
				</div>
 				<div class="form-group">
					<label class="col-md-3 control-label">附件上传：</label>
					<div class="col-md-6" style="margin-right: 20px" >
						<input type="file" class="form-control" placeholder="选择图片文件"
							ng-value="fileToUpload" value="{{fileToUpload}}"
							file-model="fileToUpload" set-file-data="fileToUpload = value;">
					</div>
					<p style="margin-top: 7px">请选择文件上传。</p>
				</div>
			</div>
			<footer class="panel-footer text-right bg-light lter" >
				<button class="btn btn-default" type="button" ng-click="cancel()">取消</button>
				<button type="submit" class="btn btn-success" ng-click="ok()">提交</button>
			</footer>
		</div>
	</form>
</div>